package com.mjkj.demo.model.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author keeng
 * @since 2025/9/7
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RegisterReq", description="用户注册请求对象")
public class RegisterReq implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户账号")
	@NotBlank(message = "账号不能为空")
	private String username;

	@ApiModelProperty(value = "密码")
	@NotBlank(message = "密码不能为空")
	private String password;
}
